#ifndef ZLBASE_GLOBAL_H_
#define ZLBASE_GLOBAL_H_

#if defined(_WIN32) || defined(WIN32)
#    ifdef ZLBASE_EXPORT
#        define ZLBASE_API __declspec(dllexport)
#    else
#        define ZLBASE_API __declspec(dllimport)
#    endif  // ZLBASE_EXPORT
#else
#    define ZLBASE_API
#endif  // ZL_WINDOWS

// 类型定义
#define ZLBASE_DEVICE(SUB) (100000 + SUB)    // 设备类型
#define ZLBASE_PROTOCOl(SUB) (200000 + SUB)  // 协议类型
#define ZLBASE_DATALINK(SUB) (300000 + SUB)  // 链路类型

#endif  // ZLBASE_GLOBAL_H_
